<?php if(count($this->_tpl_vars['array']) > 0){ ?>
<?php if (count($this->_tpl_vars['array'])>0){$divid_list=1;for($list=0;$list<count($this->_tpl_vars['array']); $list++){?>
<div class="infolist" onselectstart="return false;" title="<?php echo $this->_tpl_vars['array'][$list]['HotelOrderID'] ?> - <?php echo $this->_tpl_vars['array'][$list]['OrderState'] ?>" <?php if($this->powercheck(135,160)==true ){ ?>ondblClick="javascript:parent.onbotton('<?php echo $this->_tpl_vars['ST']['ordermain_edit_log'] ?><?php echo $this->_tpl_vars['array'][$list]['HotelOrderID'] ?>','index.php?archive=ordermain&action=orderedit&id=<?php echo $this->_tpl_vars['array'][$list]['ID'] ?>&type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'orderread<?php echo $this->_tpl_vars['array'][$list]['ID'] ?>',self.frameElement.getAttribute('name'));"<?php } ?>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="4%"><input type="checkbox" name="orderselectinfoid" value="<?php echo $this->_tpl_vars['array'][$list]['ID'] ?>"></td>
			<td width="7%"><?php if($this->_tpl_vars['array'][$list]['HotelOrderID']!=""){ ?><?php echo $this->_tpl_vars['array'][$list]['HotelOrderID'] ?><?php }else{ ?>-<?php } ?></td>
            <?php if($this->_tpl_vars['array'][$list]['neworder'] == 1){ ?>
            <td width="6%"><span class="colorghow"><?php echo $this->_tpl_vars['array'][$list]['OrderState'] ?></span></td>
            <?php }else{ ?>
            <td width="6%"><span class="colorgreen"><?php echo $this->_tpl_vars['array'][$list]['OrderState'] ?></span></td>
            <?php } ?>
            <td width="11%"><?php echo $this->_tpl_vars['array'][$list]['OrderDatetime'] ?></td>
            <td width="6%"><?php echo $this->_tpl_vars['array'][$list]['OrderType'] ?></td>
            <td width="17%" id="left" class="padding-left3"><?php echo $this->_tpl_vars['array'][$list]['HotelName'] ?></td>
            <td width="7%"><?php echo $this->_tpl_vars['array'][$list]['RoomTypeName'] ?></td>
            <td width="3%"><?php echo $this->_tpl_vars['array'][$list]['RoomAmount'] ?></td>
            <td width="9%"><?php echo $this->_tpl_vars['array'][$list]['CheckInDate'] ?></td>
            <td width="8%"><?php echo $this->_tpl_vars['array'][$list]['CheckOutDate'] ?></td>
            <td width="7%"><span class="colororder"><?php echo $this->_tpl_vars['array'][$list]['Guest_Name'] ?></span></td>
            <td width="8%"><span class="colororder"><?php echo $this->_tpl_vars['array'][$list]['Guest_Mobile'] ?></span></td>
			<td width="7%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('<?php echo $this->_tpl_vars['ST']['ordermain_edit_log'] ?><?php echo $this->_tpl_vars['array'][$list]['HotelOrderID'] ?>','index.php?archive=ordermain&action=orderedit&id=<?php echo $this->_tpl_vars['array'][$list]['ID'] ?>&type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'orderread<?php echo $this->_tpl_vars['array'][$list]['ID'] ?>',self.frameElement.getAttribute('name'));" id="orderread<?php echo $this->_tpl_vars['array'][$list]['ID'] ?>" href="#body" title="<?php echo $this->_tpl_vars['array'][$list]['HotelOrderID'] ?><?php echo $this->_tpl_vars['ST']['setedit_botton'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['setedit_botton'] ?></a></td>
						<td class="padding-left3">
                        <a class="setedit" id="hotellog" href="javascript:parent.windowsdig('<?php echo $this->_tpl_vars['ST']['ordermain_text_hotellog'] ?>','iframe:index.php?archive=management&action=list&listfunction=orderloglist&orderid=<?php echo $this->_tpl_vars['array'][$list]['ID'] ?>&iframename='+self.frameElement.getAttribute('name'),'640px','500px','iframe',true);" title="<?php echo $this->_tpl_vars['ST']['ordermain_text_hotellog'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['ordermain_text_hotellog2'] ?></a>
                        
                        </td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<?php }} ?>
<?php }else{ ?>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center"><?php echo $this->_tpl_vars['ST']['list_nothing_title'] ?></td>
	</tr>
</table>
</div>
<?php } ?>